<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
		 var num = prompt("输入一个正整数:");
		    alert(num + "当中最高位是：" + num.charAt(0))
		</script>
	</head>
	<body>
	</body>
</html>